<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Add User</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <center><h1>Add User</h1>
    <p>
    <h3>Regular MVC Type</h3>
    </center>
    <p>
    
<form method="post">
     <table width="25%" border="1">
          <tr>
               <td align="center" bgcolor="lightblue">Log on</td>
          </tr>
          <tr>
               <td>
                    <table border="0" width="100%">
                         <tr>
                              <td width="33%" align="right">Username: </td>
                              <td width="66%" align="left">
                                   <spring:bind path="credentials.username">
                                   <input type="text" 
                                          name="username" 
                                          value="<core:out value="${status.value}"/>"/>          
                                   </spring:bind>
                              </td>
               
                         </tr>
                         <tr>
                              <td colspan="2" align="center">
                                   <spring:hasBindErrors name="credentials">
                                   <font color="red"><core:out value="${status.errorMessage}"/></font>
                                   </spring:hasBindErrors>
                              </td>
                         </tr>
                         <tr>
                              <td width="33%" align="right">Password: </td>
                              <td width="66%" align="left">
                                   <spring:bind path="credentials.password">
                                   <input type="password" name="password" />
                                   </spring:bind>
                              </td>
                         </tr>
                         <tr>
                              <td colspan="2" align="center">
                                   <spring:hasBindErrors name="credentials">
                                   <font color="red"><core:out value="${status.errorMessage}"/></font>
                                   </spring:hasBindErrors>
                              </td>
                         </tr>
                         <tr>
                              <td align="center" colspan="2">
                                   <input type="submit" alignment="center" value="Logon">
                              </td>
                         </tr>
                    </table>
                         
               </td>
          </tr>
     </table>
          
</form>
  </body>
</html>
